﻿using UnityEngine;
using System.Collections;

public class ObjectiveKillAllEnemies : MonoBehaviour, ILevelObjective{
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public bool ObjectiveAchieved()
	{
		GameObject[] gameObjects = GameObject.FindGameObjectsWithTag("TestEnemy");


		return gameObjects.Length == 0;
	}
	
	public void SetLevel(Level level)
	{

	}
}
